package org.tarena.dang.action.user;

import org.tarena.dang.action.BaseAction;
import org.tarena.dang.entity.User;

public class LogoutAction extends BaseAction {
	public String execute(){
		if(session.size()!=0){
			System.out.println("用户"+((User)session.get("d_user")).getNickname()+"已经登出");
		}else{
			System.out.println("session超时！");
		}
		
		session.clear();
		return "success";
	}
}
